var express = require('express');
var router = express.Router();

//加密
crypto = require('crypto');//加密组件
var md5 = function(text){
    return crypto.createHash('md5').update(text).digest('hex');
}


//首页
router.get("/",function(req,res){
        res.render("index",{
             title:"主页",
             user: req.session.user
         });
});




module.exports=router;